{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "title": "Security::Finding#finding_data schema",
  "description": "The schema validates the content of the Security::Finding#finding_data attribute",
  "additionalProperties": false,
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "solution": {
      "type": "string"
    },
    "location": {
      "type": "object"
    },
    "identifiers": {
      "type": "array"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "remediation_byte_offsets": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "start_byte": {
            "type": "integer"
          },
          "end_byte": {
            "type": "integer"
          }
        },
        "required": [
          "start_byte",
          "end_byte"
        ]
      }
    },
    "false_positive?": {
      "type": "boolean"
    },
    "raw_source_code_extract": {
      "type": "string",
      "description": "Provides an unsanitized excerpt of the affected source code."
    },
    "evidence": {
      "type": "object"
    },
    "assets": {
      "type": "array"
    },
    "details": {
      "type": "object"
    }
  }
}
